# -*- coding: utf-8 -*-
# from functools import reduce
# import time
# list1 = [1,2,3,4,5]
# def f(a,b):
#     print('进入f')
#     print('a=',a)
#     print('b=',b)
#     return a + b
# res = reduce(f,list1)
# print(res)

# x = 1
# def func(x):
#     if x == 500:
#         return
#     print(x)
#     return func(x+1)
# func(x)

# def f():
#     x = 10
#     def g():
#         print(x)
#     return g
# h = f()
# h()

# def foo():
#     start = time.time()
#     print('foo....')
#     end = time.time()
#     print(f'运行了{end - start}')
# foo()

